package 老师和学生02;

public class Teacher extends Person{
    public Teacher(){}
    public Teacher(String name,int age){
        //传递过去通过父类构造
        super(name,age);

    }
    public void teach(){
        System.out.println("教书育人");

    }
}
